/*
 * @Author: 赵克强 huohuo625@163.com
 * @Date: 2024-10-08 11:02:55
 * @LastEditors: 赵克强 huohuo625@163.com
 * @LastEditTime: 2024-11-13 14:28:35
 * @FilePath: \hy-ui\src\api\trainingCenter\index.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from '@/utils/request'

export function examRecord(params) {
  return request({
    url: `/userTrainPlan/examRecord`,
    method: 'get',
    params
  })
}

export function planList(params) {
  return request({
    url: `/userTrainPlan/planList/${params.type}`,
    method: 'get',
  })
}

export function courseListApi(planId) {
  return request({
    url: `/userTrainPlan/courseList/${planId}`,
    method: 'get',
  })
}

export function courseCenter(params) {
  return request({
    url: `/userTrainPlan/courseCenter`,
    method: 'get',
    params
  })
}
export function tagList() {
  return request({
    url: `/userTrainPlan/tagList`,
    method: 'get',
  })
}

export function selfStudyCourseList(params) {
  return request({
    url: `/userTrainPlan/selfStudyCourseList`,
    method: 'get',
    params
  })
}


export function getCouPlan(params) {
  return request({
    url: `/userTrainPlan/planListWithCourse`,
    method: 'get',
    params
  })
}

export function addSelfStudyCourse(params) {
  return request({
    url: `/userTrainPlan/addSelfStudyCourse`,
    method: 'get',
    params
  })
}

export function trainRecord(params) {
  return request({
    url: `/userTrainPlan/trainRecord`,
    method: 'get',
    params
  })
}

export function coursewareList(params) {
  return request({
    url: `/userTrainPlan/coursewareList`,
    method: 'get',
    params
  })
}

export function endStudy(coursewareDetailId,params) {
  return request({
    url: `/userTrainPlan/endStudy/${coursewareDetailId}`,
    method: 'get',
    params
  })
}


export function examList(planId) {
  return request({
    url: `/userTrainPlan/examList/${planId}`,
    method: 'get',
  })
}


export function planListWithExam() {
  return request({
    url: `/userTrainPlan/planListWithExam`,
    method: 'get',
  })
}

export function startExamCheck(examTaskId) {
  return request({
    url: `/userTrainPlan/startExamCheck/${examTaskId}`,
    method: 'get',
  })
}








